-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mono] Use libclang from dotnet/llvm-project for offsets-tool.py #109188
Conversation
Removes the need for a system-installed libclang.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
<_LibclangSuffix Condition="'$(HostOS)' == 'Windows'">.dll</_LibclangSuffix> | ||
<_LibclangSuffix Condition="'$(HostOS)' == 'OSX'">.dylib</_LibclangSuffix> | ||
<_LibclangSuffix Condition="'$(_LibclangSuffix)' == ''">.so</_LibclangSuffix> | ||
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(_LibclangSuffix)</_LibclangPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<_LibclangSuffix Condition="'$(HostOS)' == 'Windows'">.dll</_LibclangSuffix> | |
<_LibclangSuffix Condition="'$(HostOS)' == 'OSX'">.dylib</_LibclangSuffix> | |
<_LibclangSuffix Condition="'$(_LibclangSuffix)' == ''">.so</_LibclangSuffix> | |
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(_LibclangSuffix)</_LibclangPath> | |
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(LibSuffix)</_LibclangPath> |
(eng/native/naming.props is already included in all contexts)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that doesn't work since we need the extension for the host OS where the offsets-generator runs during the build. naming.props is based off of PackageRID i.e. TargetOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, right, maybe we can create another set there completely based on host if this kind of thing has more than one usage (e.g. CG2 may also be doing similar shenanigans somewhere 😅).
/ba-g failures are unrelated to the offset-tool changes |
Removes the need for a system-installed libclang.